github.com/coder/websocket.trimLastFourBytesWriter.tail (field)
20 uses
github.com/coder/websocket (current package)
compress.go#L84: tail []byte
compress.go#L88: if tw != nil && tw.tail != nil {
compress.go#L89: tw.tail = tw.tail[:0]
compress.go#L94: if tw.tail == nil {
compress.go#L95: tw.tail = make([]byte, 0, 4)
compress.go#L98: extra := len(tw.tail) + len(p) - 4
compress.go#L101: tw.tail = append(tw.tail, p...)
compress.go#L106: if extra > len(tw.tail) {
compress.go#L107: extra = len(tw.tail)
compress.go#L110: _, err := tw.w.Write(tw.tail[:extra])
compress.go#L116: n := copy(tw.tail, tw.tail[extra:])
compress.go#L117: tw.tail = tw.tail[:n]
compress.go#L123: tw.tail = append(tw.tail, p...)
compress.go#L128: tw.tail = append(tw.tail, p[len(p)-4:]...)
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |